module.exports = {
  value: {
    type: [String, Array, Object, Date],
    default: '',
    name: '输入值',
    filedType: 'value'
  },

  // default: {
  //   type: Array,
  //   default () {
  //     return [
  //       {
  //         label: '',
  //         editable: true,
  //         disabled: false,
  //         value: ''
  //       }
  //     ]
  //   },
  //   name: '默认显示的时间',
  //   filedType: 'api'
  // },
  defaultime: {
    type: String,
    default: '',
    name: '选中日期后的默认具体时刻',
    filedType: 'string'
  },

  datetype: {
    type: String,
    default: 'date',
    name: '显示类型',
    filedType: 'select',
    options: [
      {
        name: 'year',
        value: 'year'
      },
      {
        name: 'month',
        value: 'month'
      },
      {
        name: 'date',
        value: 'date'
      },
      {
        name: 'dates',
        value: 'dates'
      },
      {
        name: 'week',
        value: 'week'
      },
      {
        name: 'datetime',
        value: 'datetime'
      },
      {
        name: 'datetimerange',
        value: 'datetimerange'
      },
      {
        name: 'daterange',
        value: 'daterange'
      },
      {
        name: 'monthrange',
        value: 'monthrange'
      }
    ]
  },

  format: {
    type: String,
    default: 'yyyy-MM-dd',
    name: '显示在输入框中的格式',
    filedType: 'string'
  },
  valueformat: {
    type: String,
    default: '',
    name: '绑定值的格式',
    filedType: 'string'
  },

  clearable: {
    type: Boolean,
    default: true,
    name: '是否可清空',
    filedType: 'switch'
  },

  unlinkpanels: {
    type: Boolean,
    default: false,
    name: '取消日期面板之间联动',
    filedType: 'switch'
  },

  size: {
    type: String,
    default: 'medium',
    name: '输入框尺寸',
    filedType: 'select',
    options: [
      {
        name: '小尺寸',
        value: 'small'
      },
      {
        name: '中尺寸',
        value: 'medium'
      },
      {
        name: 'mini',
        value: 'mini'
      }
    ]
  },
  width: {
    type: String,
    default: '200px',
    name: '输入框宽度',
    filedType: 'string'
  },

  placeholder: {
    type: String,
    default: '选择日期',
    name: '占位文本',
    filedType: 'string'
  },
  splaceholder: {
    type: String,
    default: '选择日期',
    name: '开始日期占位文本',
    filedType: 'string'
  },
  eplaceholder: {
    type: String,
    default: '选择日期',
    name: '结束日期占位文本',
    filedType: 'string'
  },

  rangeseparator: {
    type: String,
    default: '-',
    name: '选择范围时的分隔符',
    filedType: 'string'
  },
  labelWidth: {
    type: String,
    default: '5em',
    name: '标题宽度',
    nameTip: '建议用em单位显示几个字',
    filedType: 'string'
  },

  title: {
    type: String,
    default: '',
    name: '标题',
    filedType: 'string'
  },
  titleWeight: {
    type: String,
    default: '700',
    name: '标题粗细',
    filedType: 'string'
  },
  titleHeight: {
    type: String,
    default: '26px',
    name: '标题行高',
    filedType: 'string'
  },
  align: {
    type: String,
    default: 'left',
    name: '对齐方式',
    filedType: 'select',
    options: [
      {
        name: 'left',
        value: 'left'
      },
      {
        name: 'center',
        value: 'center'
      },
      {
        name: 'right',
        value: 'right'
      }
    ]
  },

  timearrowcontrol: {
    type: Boolean,
    default: false,
    name: '用箭头进行时间选择',
    filedType: 'switch'
  },
  disabled: {
    type: Boolean,
    default: false,
    name: '禁用',
    filedType: 'switch'
  },

  usePickerOption: {
    type: Boolean,
    default: false,
    name: '启用选择器参考下表',
    filedType: 'switch'
  },

  pickerOption: {
    type: Function,
    default: '',
    name: '选择器参考下表',
    filedType: 'function',
    vif: {
      key: 'usePickerOption',
      value: true
    }
  },

  color: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color'
  },

  bgColor: {
    type: String,
    default: '#ffffff',
    name: '背景色',
    filedType: 'color'
  },

  borderColor: {
    type: String,
    default: '#e4e7ed',
    name: '边框色',
    filedType: 'color'
  },

  focusBorderColor: {
    type: String,
    default: '#409EFF',
    name: '聚焦边框色',
    filedType: 'color'
  },

  validValue: {
    type: Boolean,
    default: false,
    name: '数据校验',
    filedType: 'switch'
  },
  validRules: {
    type: Array,
    default () {
      return [
        { required: true, message: '请输入活动名称', trigger: 'blur' },
        { disabled: false, message: '禁用输入框' }
      ]
    },
    name: '校验规则',
    filedType: 'api',
    vif: {
      key: 'validValue',
      value: true
    }
  },
}
